package com.thtn.greendroidthtneg2;

import greendroid.app.GDActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class AboutActivity extends GDActivity {
	protected void onCreate(Bundle paramBundle) {
		super.onCreate(paramBundle);
		setActionBarContentView(R.layout.about_layout);
		TextView localTextView = (TextView) findViewById(R.id.about_view);
		localTextView.setText(R.string.about_text);
		localTextView.setMovementMethod(LinkMovementMethod.getInstance());
		((Button) findViewById(R.id.rate))
				.setOnClickListener(new View.OnClickListener() {
					public void onClick(View paramAnonymousView) {
						Intent localIntent = new Intent(
								"android.intent.action.VIEW");
						localIntent.setData(Uri.parse("market://details?id="
								+ AboutActivity.this.getPackageName()));
						AboutActivity.this.startActivity(localIntent);
					}
				});
	}
}
